<form name="form_admin" method="POST" action="<?php echo formEditAction()?>" onsubmit="return CheckForm(this);">
<input type="hidden" name="id" value="<?php echo $id?>" />
<input type="hidden" name="oldUrl" value="<?php echo $hotel["cUrlString"] ?>" />

<table width="100%" cellpadding="0" cellspacing="0" id="tbledit">
	 <tr>
        <td><b><font color="Red"><?php echo _URL?></font></b></td>
        <td>
		<input class="normal3" type="text" name="URL"  id="URL" value="<?php echo $hotel["cUrlString"] ?>" />

		<span style="color:#FF0000; padding-left:10" id="div_url"></span>
         </td>
    </tr>

	<tr>
        <td width="15%"><span class="style1"><?php echo _NAME?></span></td>
        <td>
            <input class="normal3" type="text" name="Name" id="Name" value="<?php echo $hotel["cName"] ?>" />
        </td>
    </tr>

    <tr>
        <td><b>Address</b></td>
        <td><input type="text" name="Address" id="Address" class="normal3" value="<?php echo $hotel["cAddress"] ?>" /></td>
    </tr>
    <tr>
      <td><strong>Phone</strong></td>
      <td><input type="text" name="Phone" class="normal3" value="<?php echo $hotel["cPhone"]?>"/></td>
    </tr>
	<tr>
      <td><strong>Fax</strong></td>
      <td><input type="text" name="Fax" class="normal3" value="<?php echo $hotel["cFax"]?>"/></td>
    </tr>
	<tr>
      <td><strong>Email</strong></td>
      <td><input type="text" name="Email" class="normal3" value="<?php echo $hotel["cEmail"]?>"/></td>
    </tr>
   
	<?php
	if($hasTag)
	{
	?>
    <tr>
      <td><b><?php echo _TAGS?></b></td >
      <td><input type="text" id="Tag" name="Tag" class="normal3" value="<?php echo $tag["cTag"]?>"/></td>
    </tr>
	<?php
	}
	?>

    <tr>
      <td><strong><?php echo _INTROIMAGE?></strong></td>
      <td>
            <?php echo inputFile('ImgIntro',$hotel["cImage"])?>
      </td>
    </tr>

    <?php
	if(HAS_BANNER==true)
	{
	?>
    <tr>
        <td><b><?php echo _BANNERIMAGE?></b></td>
      <td>
            <?php echo inputFile('ImgBanner',$hotel["cBanner"],'banner')?>
		</td>
    </tr>
    <?php
	}
	?>
    
    <?php
	if(HAS_BACKGROUND==true)
	{
	?>
    <tr>
        <td><b>Background Image</b></td>
        <td>
            <?php echo inputFile('ImgBackground',$hotel["cBackground"],'background')?>
        </td>
    </tr>
    <?php
	}
	?>
    <tr>
        <td><b>Types</b></td>
        <td>
            <select name="TypeId" id="TypeId">
			 	<?php echo ListOptionHotelType($hotel['iTypeId']);?>
            </select>
            
            <select name="TypeId2" id="TypeId2">
			 	<?php echo ListOptionHotelType($hotel['iTypeId2']);?>
            </select>     
        
        </td>
    </tr>

    <tr>
        <td><strong><?php echo Location?></strong></td>
        <td>
            <select name="Location">
				<?php echo ListLocationOption($hotel['iParentId'])?>
			</select>
            
            &nbsp;&nbsp;            
            
            <strong>Star </strong>
			 <select name="Star" id="Star">
			 	<?php echo listOptionStarHotel($hotel['iStar']);?>
            </select>
            
            &nbsp;&nbsp;
            
            <b><?php echo _STATUS?></b>
			<select name="Status" id="Status">
				<?php echo liststatus($hotel['iStatus'])?>
			</select>
            
            &nbsp;&nbsp;
            
            <b><?php echo _ORDER?></b>
            <?php echo getOrderInput()?>
	     </td>
    </tr>

    <tr>
        <td><b>HighLights</b></td>
        <td>
            <input class="normal3" style="width:90%" type="text" name="HighLights" id="HighLights"
		value="<?php echo $hotel["cHighLights"] ?>" />
        </td>
    </tr>
    
   	<tr>
        <td><b><?php echo _METATITLE?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="MetaTitle" id="MetaTitle"
		value="<?php echo $hotel["cMetaTitle"] ?>" /></td>
    </tr>

    <tr>
        <td><b><?php echo _METAKEYWORDS?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="MetaKeywords" id="MetaKeywords"
		 value="<?php echo $hotel["cMetaKeywords"] ?>"  /></td>
    </tr>

    <tr>
        <td valign="top" style="vertical-align:top"><b>Meta Description</b></td>
        <td style="padding-bottom:10"><textarea style="height:90px; width:90%;" class="noeditor"
		 name="MetaDescription" ><?php echo $hotel["cMetaDescription"] ?></textarea></td>
	</tr>

    <tr>
        <td valign="top" style="vertical-align:top"><b><?php echo Short_Description?></b></td>
        <td style="padding-bottom:10"><textarea style="height:120px; width:90%;"  id="Description"
		 name="Description" ><?php echo $hotel["cDescription"] ?></textarea></td>
	</tr>

    <tr>
	        <td valign="top" style="vertical-align:top"><b><?php echo _DESCRIPTION?></b></td>
	        <td><textarea style="height:350px; width:90%;" id="Intro"
			name="Intro"><?php echo $hotel["cIntro"] ?></textarea></td>
	</tr>
    
    <tr>
	        <td valign="top" style="vertical-align:top"><b><?php echo Rates?></b></td>
	        <td><textarea style="height:350px; width:90%;" id="Rates"
			name="Rates"><?php echo $hotel["cRates"] ?></textarea></td>
	</tr>
</table>
</form>
<script language="javascript" type="text/javascript">
function CheckForm(f)
{
	if(f.URL.value=="")
	{
		alert("please enter Url String");
        f.URL.focus();
		return false;
	}
	if(f.Name.value=="")
	{
		alert("please enter name");
        f.Name.focus();
		return false;
	}
	return AIM.submit(f,null,true);
}
</script>